package com.android.music.prolyric;

import java.util.List;
import java.util.Map;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.SimpleAdapter;
import android.widget.TextView;

public class SimpleAdapterLib extends SimpleAdapter
{
	int colorTime, colorSong, colorSinger;
	public SimpleAdapterLib(Context context,List<? extends Map<String, ?>> data, int resource, String[] from,int[] to) 
	{
		super(context, data, resource, from, to);
		
	}
	
	public SimpleAdapterLib(Context context,List<? extends Map<String, ?>> data, int resource, String[] from,int[] to,int colorSong,int colorSinger,int colorTime) 
	{
		
		super(context, data, resource, from, to);
		this.colorTime  = colorTime;
		this.colorSinger = colorSinger;
		this.colorSong = colorSong;
		
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) 
	{
		View v = super.getView(position, convertView, parent);
		TextView tvDura = (TextView)v.findViewById(R.id.tvsongduration);
		TextView tvSong = (TextView)v.findViewById(R.id.tvsongtitle);
		TextView tvSinger = (TextView)v.findViewById(R.id.tvsongartist);
		tvDura.setTextColor(colorTime);
		tvSinger.setTextColor(colorSinger);
		tvSong.setTextColor(colorSong);
		return v;
	}
	
	
	
	
	

}
